<include file="theme/functions"/>
<include file="public@header"/>
<style>
    body{background: #fff;}
</style>
</head>
<body>
<div class="layui-fluid">
    <div class="">
        <ul class="layui-tab-title">
            <li>
                <a href="{:url('theme/fileSetting',['file_id'=>$file_id,'tab'=>'widget'])}">组件设置</a>
            </li>
            <li class="layui-this">
                <a href="{:url('theme/fileSetting',['file_id'=>$file_id,'tab'=>'var'])}">变量设置</a>
            </li>
        </ul>

        <div class="layui-card-body">
            <form method="post" class="js-ajax-form  margin-top-20" action="{:url('theme/settingPost')}">
                <notempty name="file['more']['vars']">
                    {:_parse_vars($file.more.vars,'vars')}
                    <else/>
                    <div>本页面没有设置任何变量</div>
                </notempty>
                <div class="form-group" style="display:none;">
                    <input type="hidden" name="id" value="{$file.id}">
                    <button type="submit" class="layui-btn layui-btn-normal js-ajax-submit" id="submit-btn">{:lang('SAVE')}</button>
                </div>
            </form>
        </div>
    </div>
</div>
<include file="theme/scripts"/>
</body>
</html>
